package com.wzy.mall.mapper.clientMapper;

import com.wzy.mall.model.bo.clientBO.GoodsAskBO;
import com.wzy.mall.model.pojo.clientPOJO.ReplyPOJO;
import com.wzy.mall.model.vo.clientVO.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GoodsMapper {

    List<IndexGoodsVO> getGoodsByType(@Param("typeId") int typeId);

    GoodsInfoVO selectGoods(int id);

    List<GoodsCommentVO> selectCommentByGoodsID(int goodsId);

    ReplyPOJO selectGoodsAndUser(GoodsAskBO goodsAskBO);

    int insertReply(ReplyPOJO replyPOJO);

    List<ReplyGetVO> selectReply(int id);

    List<GoodsSearchVO> selectByGoodsname(@Param("keyword") String keyword);
}
